package com.ruoyi.shop.service.impl;

import com.ruoyi.shop.mapper.StatisticsMapper;
import com.ruoyi.shop.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    @Override
    public List<Map<String, Object>> getOrderStatistics() {
        return statisticsMapper.queryOrderStatistics();
    }

    @Override
    public List<Map<String, Object>> getProductStatistics() {
        return statisticsMapper.queryProductStatistics();
    }

    @Override
    public List<Map<String, Object>> getUserStatistics() {
        return statisticsMapper.queryUserStatistics();
    }

    @Override
    public List<Map<String, Object>> getPaymentStatistics() {
        return statisticsMapper.queryPaymentStatistics();
    }
}
